package com.easylinkin.sm.service;


import java.util.List;
import org.springframework.data.domain.Page;

import com.easylinkin.sm.entity.Department;

import site.morn.boot.data.CrudService;
import site.morn.boot.data.DisplayableService;
import site.morn.boot.rest.RestPage;
import site.morn.rest.RestModel;

/**
 * 机构服务
 *
 * @author wujie
 * @since 0.1.1,  2019/08/19
 */
public interface DepartmentService extends CrudService<Department, Long>,
    DisplayableService<Department, Long> {

  void batchDelete(List<String> searchCodes);

  Page<Department> getDeptPage(
      RestPage<Department> restPage);

  List<Department> getDeptAll(RestModel<Department> restModel);
}
